package com.csdj.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.csdj.server.pojo.Department;
import com.csdj.server.pojo.RespBean;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ZouLi
 * @since 2022-12-12
 */
public interface IDepartmentService extends IService<Department> {
    List<Department> getAllDepartmentById(Integer pid);

    /**
     * @Description: 添加部门
     * @Param [department]
     * @Return com.csdj.server.pojo.RespBean
     * @Throws
     **/
    RespBean addDepartment(Department department);

    RespBean delDepartment(Integer id);
}
